<?php
include(dirname(__FILE__) . "/comment-service-adapter.php");

$service_adapter = new CommentServiceAdapter();
$code = $service_adapter->Post($_POST['aid'], $_POST['comment']);

if ($code == 0) {
  echo '{code:0, reason:"Post Comment OK"}';
} else {
  echo '{code:1, reason:"提交评论失败, 请稍后重试"}';
}

?>
